package com.iteaj.iot.simulator.dtu;

import com.iteaj.iot.simulator.SimulatorConnectProperties;

/**
 * dtu连接配置信息
 */
public class SimulatorDtuConnectProperties extends SimulatorConnectProperties {

    /**
     * 心跳间隔
     */
    private int interval;

    /**
     * 是否发送心跳包
     */
    private boolean heartbeat;

    /**
     * 心跳包
     */
    private String heartbeatMsg;

    public SimulatorDtuConnectProperties(String remoteHost, Integer remotePort, String connectKey) {
        super(remoteHost, remotePort, connectKey);
    }

    public boolean isHeartbeat() {
        return heartbeat;
    }

    public void setHeartbeat(boolean heartbeat) {
        this.heartbeat = heartbeat;
    }

    public int getInterval() {
        return interval;
    }

    public void setInterval(int interval) {
        this.interval = interval;
    }

    public String getHeartbeatMsg() {
        return heartbeatMsg;
    }

    public void setHeartbeatMsg(String heartbeatMsg) {
        this.heartbeatMsg = heartbeatMsg;
    }
}
